package net.csdra.libraryborrowing.service.book;

import net.csdra.libraryborrowing.domain.book.BookStorageBox;
import org.springframework.security.access.method.P;

import java.nio.file.AccessDeniedException;
import java.util.List;

/**
 * Created by msf on 2017/10/16.
 */
public interface BookStorageBoxService {

    /**
     * 将书籍存入当前用户的购物车，购物车上限为100本书籍（非副本）
     *
     * @param putBookInfo
     * @return
     */
    public BookStorageBox putBookInfo(PutBookInfo putBookInfo) throws AccessDeniedException;

    /**
     * 将书籍移除购物车（硬删除）
     *
     * @param removeBookStrorageBook
     * @return
     */
    public boolean removeBookStrorageBook(RemoveBookStrorageBook removeBookStrorageBook) throws AccessDeniedException;




    class PutBookInfo {
        String bookInfoId;

        public String getBookInfoId() {
            return bookInfoId;
        }

        public void setBookInfoId(String bookInfoId) {
            this.bookInfoId = bookInfoId;
        }
    }

    class RemoveBookStrorageBook extends PutBookInfo {

    }

    class GetBookStorageBox {
    }
}
